package com.xyoto.community.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * @author coderFu
 * @create 2021/10/2
 */
@ApiModel("微信登录参数")
@Data
public class WxLoginDTO {

    @ApiModelProperty("登录唯一code")
    @NotEmpty(message = "唯一code值不能为空")
    private String code;

    @ApiModelProperty("用户名")
    @NotEmpty(message = "用户名不能为空")
    private String nickname;

    @ApiModelProperty("用户头像")
    @NotEmpty(message = "用户头像不能为空")
    private String avatarUrl;

    @ApiModelProperty("性别")
    private String gender;

    @ApiModelProperty("加密的手机号数据")
    @NotEmpty(message ="加密手机号不能为空")
    private String encryptedData;

    @ApiModelProperty("对称加密密钥")
    @NotEmpty(message = "密钥不能为空")
    private String iv;

    @ApiModelProperty("所在国家")
    private String country;

    @ApiModelProperty("所在省份")
    private String province;

    @ApiModelProperty("所在城市")
    private String city;
}
